package com.example.saifly.inPageMy;

import android.content.Intent;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.example.common.Activity;
import com.example.saifly.R;

public class UserQuestionActivity extends Activity
{
    @Override
    protected int getContentLayoutId()
    {
        return R.layout.activity_question;
    }

    private LinearLayout llQuestion1;
    private LinearLayout llQuestion2;
    private LinearLayout llQuestion3;
    private ImageView ivReturn;

    @Override
    protected void init()
    {
        super.init();

        llQuestion1=findViewById(R.id.question_question1);
        llQuestion2=findViewById(R.id.question_question2);
        llQuestion3=findViewById(R.id.question_question3);
        ivReturn = findViewById(R.id.user_question_return);

        doJump();
    }

    private void doJump()
    {
        ivReturn.setOnClickListener(view -> finish());
        llQuestion1.setOnClickListener(v -> startActivity(new Intent(this, Question1Activity.class)));
        llQuestion2.setOnClickListener(v -> startActivity(new Intent(this, Question2Activity.class)));
        llQuestion3.setOnClickListener(v -> startActivity(new Intent(this, Question3Activity.class)));
    }
}
